import Login from '../views/login'
import Registry from '../views/registry'
import Main from '../views/main/index'
import Home from '../views/main/home'
import My from '../views/main/my'
export default [
    {
        path:'/login',
        component:Login
    },
    {
        path:'/registry',
        component:Registry
    },
    {
        path:'/main',
        component:Main,
        children:[
            {
                path:'/main/home',
                component:Home
            },
            {
                path:'/main/my',
                component:My
            },
            {
                path:'/main',
                redirect:'/main/home'
            }
        ]
    },
    {
        path:'/',
        redirect:'/main'
    }
]